package com.jiyun.controller;


import com.jiyun.login.pojo.finance.PayableInfo;
import com.jiyun.login.pojo.finance.PayableInfoVo;
import com.jiyun.login.pojo.finance.Receivable;
import com.jiyun.result.Result;
import com.jiyun.service.IPayableInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-02-14
 */
@RestController
@RequestMapping("/finance/yinf")
public class PayableInfoController {

    @Autowired
    private IPayableInfoService payableInfoService;

    //查询所有
    @RequestMapping("finAll")
    public Result finAll(@RequestBody PayableInfoVo payableInfoVo){
        return payableInfoService.finAll(payableInfoVo);
    }

    @RequestMapping("gitById")
    public Result gitById(Integer id){
        PayableInfo byId = payableInfoService.getById(id);
        return Result.ok(byId);
    }

}
